<!DOCTYPE html>
<!--STATUS OK-->
<html mode="noscript">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta charset="utf-8" />
    <meta name="referrer" content="always" />
    <title>{$seo_title}</title>
    <meta name="keywords" content="{$keywords}" />
    <meta name="description" content="{$description}" />
    <meta http-equiv="mobile-agent" content="format=xhtml;url=http://m.qinxichi.com/z">
    {php $m_url = 'http://m.qinxichi.com/z'.$_SERVER['REQUEST_URI'];}
    <script type="text/javascript">
        if(window.location.host == "m.qinxichi.com"){
            window.location.href = "{$m_url}";
        }
        if (window.location.toString().indexOf('pref=padindex') != -1) {} else { if (/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))) { if (window.location.href.indexOf("?mobile") < 0) { try { if (/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { window.location.href = "{$m_url}"; } else if (/iPad/i.test(navigator.userAgent)) {} else {} } catch (e) {} } } }
    </script>

    <link rel="Shortcut Icon" href="<?php echo STATIC_URL;?>admin/yzm_admin/images/favicon.ico" />
    <link rel="stylesheet" type="text/css" href="{STATIC_URL}web/css/common_d9d3dec.css"/>
    <link rel="stylesheet" type="text/css"  href="{STATIC_URL}web/css/lazy-loader_53fe627.css"/>
    <link rel="stylesheet" type="text/css" href="{STATIC_URL}web/css/list_c8d438d.css"/>
    <style>
        .cat-drop-menu ul li:last-of-type {
            border-bottom: 0;
        }
    </style>
</head>


<body class="layout-center">


{m:include "index","header"}



<div id="body" class="cat-body">

    <div class="exp-cate-wrap">
        <div class="layout-center container">
            <div class="cate-title clearfix">
                <?php $parentid_f = get_category($parentid, 'parentid')?>

                <?php if(count(explode(",",$arrparentid))==2){
                ?>
                    <h1 class="cat-title cat-icon-{get_category($parentid, 'catimg')}"><a  hidefocus="true" id="cat-drop-btn" href="javascript:void(0)">{get_category($parentid, 'catname')}<i class="icon-cate"></i></a></h1>
                <?php
                }else if(count(explode(",",$arrparentid))==3){
                ?>
                <h1 class="cat-title cat-icon-{get_category($parentid_f, 'catimg')}"><a  hidefocus="true" id="cat-drop-btn" href="javascript:void(0)">{get_category($parentid_f,'catname')}<i class="icon-cate"></i></a></h1>
                <?php
                }else{
                    ?>
                <h1 class="cat-title cat-icon-{$catimg}"><a  hidefocus="true" id="cat-drop-btn" href="javascript:void(0)">{$catname}<i class="icon-cate"></i></a></h1>
                <?php
                }
                ?>
                <div id="cat-drop-menu" class="cat-drop-menu" style="display:none">
                    <ul class="exp-cate-list">
                        {m:get sql="SELECT * FROM yzm_category WHERE parentid =0 and display=1 " }
                        {loop $data $k=>$v}
                        <li>
                            <a href="{$v[pclink]}"><i class="icon cs-ico-{$v[catimg]}"></i>{$v[catname]}</a>
                        </li>
                        {/loop}

                    </ul>
                </div>
            </div>
            <div class="cate-list clearfix">
                <?php if(count(explode(",",$arrparentid))==2){
                        ?>
                <ul class="cate-list-ul clearfix">
                    <li>
                        <div class="l-rnd"></div>
                        <div class="m-rnd">
                            <a href="{get_category($parentid, 'pclink')}">全部</a>
                        </div>
                        <div class="r-rnd"></div>
                    </li>

                    {m:get sql="SELECT * FROM yzm_category WHERE parentid = $parentid and display=1 " }
                    {loop $data $v}
                    <li {if ($v[catname]==$catname)}class="current"{/if} >
                        <div class="l-rnd"></div>
                        <div class="m-rnd">
                            <a href="{$v[pclink]}">{$v[catname]}
                                                   {m:get sql="SELECT * FROM yzm_category WHERE parentid =$v[catid] and display=1 " return="child" }
                                <?php
                                                     if(count($child)>0)
                                                   {
                                                   $child_flag = true;
                                                   ?>
                                <span class="cat-sub">
                                                        <span class="c"></span>
                                                        <span></span>
                                                        <span class="c"></span>
                                                    </span>
                                <?php
                                                     }else{
                                                         $child_flag = false;
                                                     }
                                                ?>

                            </a>
                        </div>
                        <div class="r-rnd"></div>
                    </li>
                    {/loop}
                </ul>
                {m:get sql="SELECT * FROM yzm_category WHERE parentid =$catid and display=1 " return="child" }
                <?php
                               if(count($child)>0)
                {
                ?>
                <div id="cat-placehold"></div>
                <div  class="thr-cat-box" style="left: 0px; visibility: visible;">
                    <div id="cat-arrow" class="cat-arrow" style="left: 102.5px;"><em>◆</em><span>◆</span></div>
                    <div id="cat-outer" class="cat-outer">
                        <div class="l-rnd left"></div>
                        <div class="cat-cont left">
                            <ul>
                                {loop $child $k=>$v}
                                <li>
                                    <a href="{$v[pclink]}">{$v[catname]}</a>
                                </li>
                                <?php if(count($child) > ($k+1)){
                                echo '<li class="line"></li>';
                                } ?>
                                {/loop}
                            </ul>
                        </div>
                        <div class="r-rnd left"></div>
                    </div>
                </div>
                <?php
                                }
                             ?>



                <?php
                        }else if(count(explode(",",$arrparentid))==3){
                             ?>
                                <ul class="cate-list-ul clearfix">
                                    <li>
                                        <div class="l-rnd"></div>
                                        <div class="m-rnd">
                                            <a href="{get_category($parentid_f, 'pclink')}">全部</a>
                                        </div>
                                        <div class="r-rnd"></div>
                                    </li>

                                    {m:get sql="SELECT * FROM yzm_category WHERE parentid = $parentid_f and display=1 " }
                                    <?php $catname_f = get_category($parentid,'catname')?>
                                    <?php $catid = get_category($parentid_f,'catid')?>
                                    {loop $data $v}
                                    <li {if ($v[catname]==$catname_f)}class="current"{/if} >
                                        <div class="l-rnd"></div>
                                        <div class="m-rnd">
                                            <a href="{$v[pclink]}">{$v[catname]}
                                                                   {m:get sql="SELECT * FROM yzm_category WHERE parentid =$v[catid] and display=1 " return="child" }
                                                <?php
                                                                     if(count($child)>0)
                                                                   {
                                                                   $child_flag = true;
                                                                   ?>
                                                <span class="cat-sub">
                                                                        <span class="c"></span>
                                                                        <span></span>
                                                                        <span class="c"></span>
                                                                    </span>
                                                <?php
                                                                     }else{
                                                                         $child_flag = false;
                                                                     }
                                                                ?>

                                            </a>
                                        </div>
                                        <div class="r-rnd"></div>
                                    </li>
                                    {/loop}
                                </ul>
                                {m:get sql="SELECT * FROM yzm_category WHERE parentid =$parentid and display=1 " return="child" }
                                <?php
                                               if(count($child)>0)
                                {
                                ?>
                                <div id="cat-placehold"></div>
                                <div  class="thr-cat-box" style="left: 0px; visibility: visible;">
                                    <div id="cat-arrow" class="cat-arrow" style="left: 102.5px;"><em>◆</em><span>◆</span></div>
                                    <div id="cat-outer" class="cat-outer">
                                        <div class="l-rnd left"></div>
                                        <div class="cat-cont left">
                                            <ul>
                                                {loop $child $k=>$v}
                                                    {if $v[catname]==$catname}
                                                        <li>
                                                            <b>{$v[catname]}</b>
                                                        </li>
                                                    {else}
                                                        <li>
                                                            <a href="{$v[pclink]}">{$v[catname]}</a>
                                                        </li>
                                                    {/if}

                                                <?php if(count($child) > ($k+1)){
                                                    echo '<li class="line"></li>';
                                                } ?>
                                                {/loop}
                                            </ul>
                                        </div>
                                        <div class="r-rnd left"></div>
                                    </div>
                                </div>
                                <?php
                                                }
                                             ?>



                                <?php
                        }else{
                            ?>
                <ul class="cate-list-ul clearfix">
                    <li class="current">
                        <div class="l-rnd"></div>
                        <div class="m-rnd">
                            <a href="{$pclink}">全部</a>
                        </div>
                        <div class="r-rnd"></div>
                    </li>

                    {php $data = get_childcat($catid);}
                    {loop $data $v}
                    <li>
                        <div class="l-rnd"></div>
                        <div class="m-rnd">
                            <a href="{$v[pclink]}">{$v[catname]}
                                                   {m:get sql="SELECT * FROM yzm_category WHERE parentid =$v[catid] and display=1 " return="child" }
                                <?php
                                                        if(count($child)>0){
                                                   ?>
                                <span class="cat-sub">
                                                                <span class="c"></span>
                                                                <span></span>
                                                                <span class="c"></span>
                                                            </span>
                                <?php
                                                        }
                                                    ?>

                            </a>
                        </div>
                        <div class="r-rnd"></div>
                    </li>
                    {/loop}
                </ul>
                <?php
                        }
                        ?>




            </div>
        </div>
    </div>
    <div class="exp-main-wrap clearfix">
        <div class="exp-main-cont left">
            <aside class="l-aside left" id="l-aside">
                <div class="wgt-exp-tab">
                    <ul>
                        <!--<li class="  {if $types!=2}on{/if}"><a href="{$pclink}?type=1">精选经验<i class="exp-arrow"></i></a></li>-->
                        <!--<li class="last {if $types==2}on{/if}"><a href="{$pclink}?type=2">最近热门<i class="exp-arrow"></i></a></li>-->
                        <li class="last on"><a href="{$pclink}">最近热门<i class="exp-arrow"></i></a></li>
                    </ul>
                </div>
                <div class="wgt-hot-tag">
                    <h3>热点标签</h3>
                    <ul>
                        {m:get sql="SELECT * FROM yzm_tag order by total desc" }
                        {loop $data $v}
                        <li><a href="{tag_url($v['id'])}" target="_blank" >{$v[tag]}</a></li>
                        {/loop}
                    </ul>
                </div>
            </aside>

            <style>
                .curpage{
                    color: #000!important;
                    display: inline-block!important;
                    width: 25px!important;
                    text-align: center!important;
                    border: 0px!important;
                }
                .pg a:first-of-type{
                    width:70px!important;
                }
                .pg a:last-of-type{
                    width:70px!important;
                }
            </style>
            <div class="exp-list-cont left">
                <div id="img-list" class="img-list clearfix">
                    <ul class="wgt-img-exp clearfix">
                        <!--{if $types==2}&lt;!&ndash;热门&ndash;&gt;
                        {m:get sql="SELECT title,url,click,thumb FROM yzm_article WHERE status=1 and catid in ($arrchildid) ORDER BY click Desc " limit="18" page="pages"}
                        {else}&lt;!&ndash;精选置顶&ndash;&gt;
                        {m:get sql="SELECT title,url,click,thumb FROM yzm_article WHERE status=1 and flag = 1 and catid in ($arrchildid) ORDER BY click Desc " limit="18" page="pages"}
                        {/if}-->

                        {m:get sql="SELECT title,url,click,thumb FROM yzm_article WHERE status=1 and catid in ($arrchildid) ORDER BY click Desc " limit="18" page="pages"}

                        {loop $data $v}
                        <li>
                            <a class="exp-link" target="_blank" href="{$v[url]}">
                                <div class="exp-cover">
                                    <img class="lazy-load-img" data-src="{$v[thumb]}" />
                                    <span class="border-top"></span>
                                    <span class="border-right"></span>
                                    <span class="border-bottom"></span>
                                    <span class="border-left"></span>
                                </div>
                                <div class="exp-info">
                                    <p class="exp-title">{$v[title]}</p>
                                    <p class="exp-meta"><span class="share"><i></i>{$v[click]}</span></p>
                                </div>
                            </a>
                        </li>
                        {/loop}


                    </ul>
                </div>
                <div id="pg" class="pg">{$pages}</div>
            </div>
        </div>
        <aside class="r-aside grid-25 right" id="r-aside">
            <div class="wgt-cat-daren">
                <h2>分类达人</h2>
                <div class="daren-list">
                    {m:get sql="SELECT count(id) sum,nickname,title,url,click,thumb FROM yzm_article WHERE status=1  group by nickname " limit="5"}

                    {loop $data $k=>$v}
                    <div class="daren-item {if $k==0}on{/if} {if count($data)==($k+1)}last{/if}">
                        <div class="daren-vcard clearfix">
                            <div class="daren-avatar left">
                                <a href="javascript:(0);"rel="nofollow">
                                    <div class="avatar-cover"></div>
                                    <img src="{get_articleavatar($v[nickname])}" /></a>
                            </div>
                            <div class="daren-info left">
                                <a href="javascript:(0);" rel="nofollow">{$v[nickname]}</a>
                                <p>总共贡献：<span>{$v[sum]}篇</span></p>
                            </div>
                        </div>
                        <ul class="daren-explist" {if $k>0}style="display:none"{/if}>
                            {m:get sql="SELECT nickname,title,url,click,thumb FROM yzm_article WHERE status=1 and nickname = '$v[nickname]' order by click Desc " limit="5"}

                            {loop $data $v}
                            <li>
                                <a target="_blank" href="{$v[url]}" title="{$v[title]}" ><?php echo mb_substr($v[title],0,18);?></a>
                            </li>
                            {/loop}
                        </ul>
                    </div>

                    {/loop}


                </div>
            </div>
            <div class="cms-banner">
                <div class="ad2">
                    {adver(3)}
                </div>

            </div>
        </aside>
    </div>

</div>


{m:include "index","footer"}


</body>
<script type="text/javascript" src="{STATIC_URL}web/js/mod_f40370d.js"></script>
<script type="text/javascript">require.resourceMap({
    "res": {
        "common-jquery:widget/lib/jquery/jquery.js": {
            "url": "{STATIC_URL}web/js/jquery_250bf24.js",
            "pkg": "common-jquery:p1"
        },
        "common-jquery:widget/js/util/event/event.js": {
            "url": "{STATIC_URL}web/js/event_7282486.js",
            "pkg": "common-jquery:p3",
            "deps": ["common-jquery:widget/lib/jquery/jquery.js"]
        },
        "common-jquery:widget/js/logic/log/log.js": {
            "url": "{STATIC_URL}web/js/log_6c676d8.js",
            "pkg": "common-jquery:p2",
            "deps": ["common-jquery:widget/lib/jquery/jquery.js", "common-jquery:widget/lib/jquery.plugins/string.js"]
        },
        "list:widget/exp-cate-wrap/exp-cate-wrap.js": {
            "url": "{STATIC_URL}web/js/exp-cate-wrap_bf58930.js",
            "pkg": "list:p0",
            "deps": ["common-jquery:widget/lib/jquery/jquery.js"]
        }
    }
});</script>
<script type="text/javascript" src="{STATIC_URL}web/js/framework_d2de9ff.js"></script>
<script type="text/javascript" src="{STATIC_URL}web/js/base_bb4fd86.js"></script>
<script type="text/javascript" src="{STATIC_URL}web/js/more_e6cee5f.js"></script>
<script type="text/javascript" src="{STATIC_URL}web/js/shimingzhi_4f92ad8.js"></script>
<script type="text/javascript" src="{STATIC_URL}web/js/error_ed451a4.js"></script>
<script type="text/javascript" src="{STATIC_URL}web/js/base_20defe1.js"></script>
<script type="text/javascript" src="{STATIC_URL}web/js/lazy-loader_d278789.js"></script>
<script type="text/javascript" src="{STATIC_URL}web/js/list_2f05875.js"></script>
<script type="text/javascript" src="{STATIC_URL}web/js/exp-img-list_09d1c14.js"></script>
<script type="text/javascript" src="{STATIC_URL}web/js/dom-ready_77b837c.js"></script>
<script type="text/javascript">!function(){    require.async('common-jquery:widget/monitor-js/monitor-js.es', function (m) {
    m.monitorJS();
});
}();
!function(){    require.async('common-jquery:widget/userbar/userbar.js', function(Userbar){
    Userbar.init();
});
}();
!function(){    require.async('common-jquery:widget/search-box/search-box.js', function(search){
    search.init();
});
}();
!function(){    require.async('common-jquery:widget/nav/nav.js', function(nav){
    nav.init();
});
}();
!function(){	require.async("list:widget/exp-cate-wrap/exp-cate-wrap.js", function(cate){
    cate.init();
});
}();
!function(){	    require.async('list:widget/exp-img-list/exp-img-list.js', function(img){
    img.init();
});
}();
!function(){	require.async('list:widget/cat-daren/cat-daren.js', function(daren){
    daren.init();
});
}();
!function(){	require.async('common-jquery:widget/footer/footer.js', function(footer){
    footer.init();
});
}();
!function(){    require.async('list:widget/dom-ready/dom-ready.js', function(ready){
    ready.init();
});
}();
!function(){        require.async('common-jquery:widget/js/logic/https/https.es', function (https) {
    // 自动修复https里的超链接
    https.autoFixAnchor();
});
}();
!function(){    require.async('common-jquery:widget/lasting-time/lasting-time.es', function (LastingTime) {
    new LastingTime();
});
}();</script>
{$site[site_code]}
</html>
